package com.kkd.springbootproject.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 14587
 * @date 2021/1/14 7:57
 */
@Data
@NoArgsConstructor
public class Emplyee {
    private Integer id;
    private String lastName;
    private String email;
    private Integer gender;
    private Date birth;
    private Department department;

    public Emplyee(Integer id, String lastName, String email, Integer gender, Department department) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.birth=new Date();
        this.department = department;
    }
}
